import {postUrl,post} from '@/utils/request.js'

/**
* 首页票夹
*/
export async function postEinvoiceIndex() {
  return post(`/applet/einvoice/index`);
}
/**短信内容识别*/
export async function distinguish(msg) {
  return postUrl(`/applet/einvoice/distinguish?content=${msg}`);
}
/**
 * 手工查票
 */
export async function postCheck(data) {
  return postUrl(`/applet/einvoice/check?einvoiceCode=${data.einvoiceCode}&einvoiceNumber=${data.einvoiceNumber}&randomNumber=${data.randomNumber}&amount=${data.amount}&issueDate=${data.issueDate}&imaCode=${data.imaCode}`);
}
/**获取验证码*/
export async function appletkaptcha() {
  return postUrl(`/officialaccount/static/appletkaptcha`);
}
/**
* 获取财政票据列表
*/
export async function crossProQueryEInvoice(data) {
  return post(`/applet/reimbursement/person/crossProQueryEInvoice`,data);
}
/**
* 财政电子票据报销
*/
export async function authorizeEInvoice(data) {
  return post(`/applet/reimbursement/person/authorizeEInvoice`,data);
}
/**
* 单位列表
*/
export async function postAgencyShow() {
  return post(`/applet/agency/showB`);
}
/**
* 自动归集
*/
export async function saveEinvoiceCollect(data) {
  return post(`/applet/einvoice/saveEinvoiceCollect`,data);
}
/**
* 导入文件
*/
export async function checkEinvoice(data) {
  return post(`/applet/reimbursement/person/checkEinvoice`,data);
}